CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(FastMD)

## Find yocto SDK
SET( YPATH "$ENV{YPATH}" CACHE STRING "yocto path" FORCE )

IF( "" STREQUAL "${YPATH}" )
  MESSAGE( FATAL_ERROR "**** YPATH is not defined! ****" )
ENDIF( "" STREQUAL "${YPATH}" )


## prepare for yocto
INCLUDE_DIRECTORIES( ${YPATH}/include )
LINK_DIRECTORIES( ${YPATH}/lib )

## and use yocto CMake
INCLUDE( ${YPATH}/share/yocto/rules.cmake)
#INCLUDE( ${YPATH}/share/yocto/openmp.cmake)

ADD_SUBDIRECTORY(core)
ADD_SUBDIRECTORY(fastmdrun)

